<template>
  <div class="order-message">
    <p class="order-no">订单号：{{ orderNo }}</p>
    <div class="goods-message">
      <img class="goods-message-cover" :src="goodsCover" alt=""/>
      <el-text>{{ goodsName }}</el-text>
    </div>
    <div>
      <ul>
        <li>收到的商品坏了怎么办</li>
        <li>如何申请售后</li>
        <li>什么时候开发票</li>
        <li>如何申请退款</li>
      </ul>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  orderNo: {
    type: String,
  },
  goodsCover: {
    type: String
  },
  goodsName: {
    type: String
  }
})
</script>
<style scoped>
.order-message {
  width: 300px;
  border: 1px solid lightgray;
  border-radius: 8px;
  padding: 8px;
}

.goods-message {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  border-radius: 4px;
}

.goods-message-cover {
  width: 60px;
  height: 60px;
}

.order-no {
  color: gray;
}
ul{
  padding: 8px 0;
}
ul,li{
  list-style: none;
}
li{
  border-bottom: 1px dashed gray;
  border-top: 1px dashed gray;
  padding: 8px 0;
}
</style>
